module OrdersHelper
  def default_invoice_id
    invoice = current_user.invoices.find_by(is_default: true)
    if invoice.present?
      invoice.id
    else
      nil
    end
  end
end
